﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Bitirme.DAL.Enum;

namespace Bitirme.DAL.Entities
{
    public class WorkPackage
    {
        private int _ID;
        private string _Name;
        private string _Subject;
        private State _PackageState;
        private PackageRequirement _Requirement;
        private List<WorkPackage> _Dependency;

        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
        public string Subject
        {
            get { return _Subject; }
            set { _Subject = value; }
        }
        public PackageRequirement Requirement
        {
            get { return _Requirement; }
            set { _Requirement = value; }
        }
        public List<WorkPackage> Dependency
        {
            get { return _Dependency; }
            set { _Dependency = value; }
        }
        public State PackageState
        {
            get { return _PackageState; }
            set { _PackageState = value; }
        }

        public WorkPackage()
        {
            this._ID = -1;
            this._Name = String.Empty;
            this._Subject = String.Empty;
            this._Requirement = new PackageRequirement();
            this._Dependency = new List<WorkPackage>();
            this._PackageState = State.None;
        }


    }
}